package com.sky.product;

import com.sky.api.config.DefaultFeignConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author toki
 */
@EnableFeignClients(basePackages = "com.sky.api.client", defaultConfiguration = DefaultFeignConfig.class)
@SpringBootApplication
@MapperScan(basePackages = "com.sky.product.mapper")
@EnableTransactionManagement
@EnableCaching
public class ProductApplication {
    public static void main(String[] args) {
        SpringApplication.run(ProductApplication.class, args);
    }
}
